home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / oscar / rendezvous / chat.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  2KB  |  31 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. from oscar.rendezvous.rendezvous import rdv_snac, rdv_types, rendezvous_tlvs as rdv_tlvs
  5. from oscar import capabilities
  6. from oscar.OscarUtil import tlv, tflv
  7. from logging import getLogger
  8. log = getLogger('oscar.rdv.chat')
  9.  
  10. def invite(o, screenname, chatcookie, message = None):
  11.     xdata = tflv(0, 4, chatcookie) + '\x00\x00'
  12.     data = ''.join([
  13.         tlv(10, 2, 1),
  14.         tlv(15),
  15.         tlv(12),
  16.         tlv(rdv_tlvs.extended_data, xdata)])
  17.     snac = rdv_snac(screenname = screenname, capability = capabilities.by_name['chat_service'], type = rdv_types.request, data = data)
  18.     o.send_snac(*snac)
  19.  
  20.  
  21. def ChatInvite(o, screenname, cookie):
  22.     
  23.     class Foo:
  24.         
  25.         def handlech2(self, message_type, data):
  26.             pass
  27.  
  28.  
  29.     return Foo()
  30.  
  31.